package org.ktjy.demoLian.mapper;


import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.ktjy.demoLian.entity.SysRight;
import org.ktjy.demoLian.entity.SysRole;
import org.ktjy.demoLian.entity.SysRoleRight;
import org.ktjy.demoLian.entity.SysUser;
import org.ktjy.demoLian.entity.vo.SysUserVo;
import org.ktjy.demoLian.page.User;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author lwj
 * @since 2024-03-07
 */
public interface SysUserMapper extends BaseMapper<SysUser> {
    SysUserVo selectByUserNameAndPassword(@Param("userName") String userName, @Param("password") String password);

    List<SysRight> getRights(@Param("rid") int rid);

    List<SysUser> getAMapeList(@Param("userName") String userName, @Param("rid") int rid, @Param("index") int index, @Param("size") int size);

    int getConut(@Param("userName") String userName, @Param("rid") int rid);

    List<SysRole> getRoleList();


}
